/*
 * @Author: WangGuojian 1085844536@qq.com
 * @Date: 2023-04-13 21:50:10
 * @LastEditTime: 2023-04-16 16:13:54
 * @LastEditors: WangGuojian 1085844536@qq.com
 * @FilePath: \guigu-oa\vue-admin-template-master\src\store\getters.js
 * @Description:
 */
const getters = {
    sidebar: (state) => state.app.sidebar,
    device: (state) => state.app.device,
    token: (state) => state.user.token,
    avatar: (state) => state.user.avatar,
    name: (state) => state.user.name,

    //新增
    buttons: (state) => state.user.buttons,
    menus: (state) => state.user.menus,
};
export default getters;
